<?
require("../page.inc");
class newspage extends page{
	public function displayheader(){
		?>
		<table width="100%" cellpadding="2" cellspacing="0" border="0">
        	<tr bgcolor="#000000">
            	<td align="left"><img src="../img/logo.gif" /></td>
                <td><h1>Luhao's Test Web</h1></td>
                <td align="right"><img src="../img/logo.gif" /></td>
            </tr>
        </table>
		<?
		}
	public function displaybutton($width,$name,$url,$active=false){
		if($active==false){
			echo "<td width=\"".$width."%\"><a href=\"../".$url."\"><img src=\"../img/s-logo.gif\" border=\"0\" /><span class=\"menu\">".$name."</span></a></td>";
			}elseif($active==true){
				echo "<td width=\"".$width."%\"><img src=\"../img/side-logo.gif\" border=\"0\" /><span class=\"menu\">".$name."</span></td>";
				}
		}	
					 
					 
					 

	}
?>